<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>id选择器</title>
		<style>
			/*css部分：#别名*/
			#head{
				width: 250px;
				height: 200px;
				background: #e4393c;
			}
			/*id选择器，1个元素只能起1个别名
		使用范围：配合切片，作页面结构，如果与类选器一同使用，以id选择器为主*/
			.head{
				width: 100px;
				height: 100px;
				background: #00aaff;
			}
			.span,#a,sub,s{
				width: 1000px;
				height: 1000px;
				background-color:#ffff00;
			}
		</style>
	</head>
	<body>
		<!-- html部分  div前标记 id"别名" -->
		<div id="head" class="head">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Veritatis a earum libero, facilis dolore voluptatem iste rerum similique, voluptatum accusantium non quisquam animi sapiente ab quidem! Ullam inventore officiis voluptate?</div>
		<hr>
		<!-- 行内元素：span -->
		<span class="span">行内元素</span>
		<a href="#" id="a">超链接</a>
		<strong>文本内容</strong>
		<sub>下标</sub>
		<s>删除线</s>
	</body>
</html>